package com.ofps.forms.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ofps.forms.common.utils.R;
import com.ofps.forms.domain.QuestionBlank;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;


/**
 * @author pyn
 * @date 2022-05-17 11:26:55
 */
public interface QuestionBlankService extends IService<QuestionBlank> {

    //保存填空题
    R save(HttpServletRequest request, QuestionBlank questionBlank);

    //删除填空题
    R delete(Map<String, Object> body);

    List<QuestionBlank> SearchQuestionWithQuestionId(String question_id);

    /**
     * 获取表单和问题接口
     * @param jsonObject 请求参数
     * @return 表单和问题数据
     */
    JSONObject getQuestionInfo(JSONObject jsonObject);
}

